﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Sinacor.Infra.UI.Common;
using Sinacor.Infra.Common;
using Sinacor.UI.Bovespa.Ordens.Communication.Bovespa.Cliente.Cliente;

namespace Sinacor.UI.Bovespa.Ordens.Communication.Translator
{
   public class TranslatorConsultarClienteRequest: 
                BaseTranslator<ConsultarClienteRequest, 
                Model.Parameter.ConsultarClienteRequest, 
                List<ConsultarClienteRequest>, 
                ModelCollection<Model.Parameter.ConsultarClienteRequest>>
{

    public override ConsultarClienteRequest Translate(Model.Parameter.ConsultarClienteRequest from)
    {
        ConsultarClienteRequest to = new ConsultarClienteRequest();
        to.Codigo = from.Codigo;
        to.Apelido = from.Apelido;
        to.Nome = from.Nome;
        to.CPFCNPJ = from.CPFCNPJ;
        to.CodigoOperacionalCVM = from.CodigoOperacionalCVM;
        to.Origem = from.Origem;
        return to;
    }
}
}
